package com.example.lanqiaodemo1.java14;

import java.util.Scanner;
public class Calculate {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int count = 0;
        count = scanner.nextInt();
        int[] value = new int[count];
        int sum = 0;
        int average = 0;

        for (int i = 0; i < count; i++) {
            value[i] = scanner.nextInt();
            sum += value[i];
        }
        average = sum / count;
        System.out.println("平均值是" + average);
        for (int i : value) {
            if (i > average) {
                System.out.println("大于平均值的数是" + i);
            }
        }
    }
}
